package com.cuicuisha.gxyp.manager.mapper;

import com.cuicuisha.gxyp.model.entity.product.Category;
import com.cuicuisha.gxyp.model.vo.product.CategoryExcelVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName: CategoryMapper
 * Description:
 *
 * @Author 脆脆鲨
 * @Create 2024-09-15 0:03
 * @Version 1.0
 */
@Mapper
public interface CategoryMapper {

    List<Category> findByParentId(Long parentId);

    int countByParentId(Long id);

    List<Category> selectAll();

    void insertBatch(List<CategoryExcelVo> categoryExcelVos);
}
